﻿@model Hetang.Models.Classes.dt_Login
@using Hetang.Models.ControlExtensions

@{
    ViewBag.Title = "登录";
}

@Html.GetJavascript("jquery.validate.min.js")
@Html.GetJavascript("jquery.validate.unobtrusive.min.js")

<div class="container well well-small top80">
    @using (Html.BeginForm("index", "login", new { ReturnUrl = Request.QueryString["ReturnUrl"] }, FormMethod.Post, new { @class = "form-horizontal form-signin" }))
    {
        <h1>登录</h1>
        <hr />
        <div class="control-group">
            @Html.LabelFor(model => model.email, "邮箱地址")
            @Html.TextBoxFor(model => model.email, new { @class = "input-block-level" })
            @Html.ValidationMessageFor(model => model.email)
        </div>        
        <div class="control-group">
            @Html.LabelFor(model => model.password, "密码", new { @class = "pull-left" })@Html.ActionLink("忘记密码？", "resetpwd", "login", new { @class = "pull-right" })
            @Html.PasswordFor(model => model.password, new { @class = "input-block-level", maxlength = 16 })
            @Html.ValidationMessageFor(model => model.password)
        </div>
        <div class="top20">
            <button type="submit" class="cbtn cbtn-info">登录</button><label class="checkbox" style="display: inline-block; margin-left: 25px;">
                @Html.CheckBoxFor(model => model.remember)
                @Html.LabelFor(model => model.remember)
            </label>
        </div>
    }
</div>
